package com.fivium.bpd.editor;

import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.BoxLayout;
import com.jgoodies.forms.layout.FormLayout;
import com.jgoodies.forms.layout.ColumnSpec;
import com.jgoodies.forms.layout.RowSpec;
import com.jgoodies.forms.factories.FormFactory;
import javax.swing.JLabel;
import javax.swing.JComboBox;

public class AssignmentPanel extends JPanel
{
  private JTextField textAssignmentTitle;
  private JTextField textField_1;
  private JTextField textAssignment;
  private JLabel lblAssignment;
  private JLabel lblAssignmentTitle;
  private JLabel lblDelegation;
  private JComboBox comboDelegation;

  /**
   * Create the panel.
   */
  public AssignmentPanel()
  {
    setLayout(new FormLayout(new ColumnSpec[] {
        FormFactory.MIN_COLSPEC,
        ColumnSpec.decode("min:grow"),},
      new RowSpec[] {
        FormFactory.MIN_ROWSPEC,
        FormFactory.MIN_ROWSPEC,
        FormFactory.MIN_ROWSPEC,}));
    
    lblAssignment = new JLabel("Assignment Internal Name:");
    add(lblAssignment, "1, 1, right, default");
    
    textAssignment = new JTextField();
    add(textAssignment, "2, 1, center, center");
    textAssignment.setColumns(10);
    
    lblAssignmentTitle = new JLabel("Assignment Title:");
    add(lblAssignmentTitle, "1, 2, right, default");
    
    textAssignmentTitle = new JTextField();
    add(textAssignmentTitle, "2, 2, center, center");
    textAssignmentTitle.setColumns(150);
    
    lblDelegation = new JLabel("Delegation Name:");
    add(lblDelegation, "1, 3, right, default");
    
    comboDelegation = new JComboBox();
    add(comboDelegation, "2, 3, fill, default");

  }

}
